//
//  FeedbackItem.m
//  IntelligenceCommunity
//
//  Created by zhangpei on 16/1/16.
//  Copyright © 2016年 zhangpei. All rights reserved.
//

#import "FeedbackItem.h"
#import "ViewHelper.h"
#import "UtilityConfig.h"

@implementation FeedbackItem
@synthesize iconImageView, detailLabel;

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        [self initView];
    }
    return self;
}

- (void)initView
{
    iconImageView = [ViewHelper superView:self withFrame:CGRectMake(0, (self.bounds.size.height - 12)/2, 12, 12) withImage:nil withBackgroundColor:[UIColor clearColor] withUserInteractionEnabled:NO];
    iconImageView.contentMode = UIViewContentModeScaleAspectFill;
    
    detailLabel = [ViewHelper superView:self withFrame:CGRectMake(iconImageView.frame.origin.x + iconImageView.frame.size.width + 3, 0, self.bounds.size.width - iconImageView.bounds.size.width - 3, self.bounds.size.height) withText:nil withBackgroundColor:[UIColor clearColor] withTextColor:COLORRGBA(119, 119, 119, 1) withFont:[UIFont systemFontOfSize:10] withTextAlignment:NSTextAlignmentLeft];
}

@end
